|
@@ -33,6 +33,7 @@ class Payios extends Api
|
|
|
$rc_id = input('rc_id',0);
|
|
|
$pay_type = 'ios';
|
|
|
$platform = 'app';
|
|
|
+ $cityname = input('cityname','','trim');
|
|
|
$uid = $this->auth->id;
|
|
|
|
|
|
if(!$rc_id){
|
|
@@ -69,7 +70,7 @@ class Payios extends Api
|
|
|
$data['order_status'] = 0;
|
|
|
$data['table_name'] = 'jewel_recharge';
|
|
|
$data['table_id'] = 0;
|
|
|
- $data['args'] = json_encode(['jewel'=>$jewel]);
|
|
|
+ $data['args'] = json_encode(['jewel'=>$jewel,'cityname'=>$cityname]);
|
|
|
$data['bundle_id'] = $recharge_config['bundle_id'];
|
|
|
|
|
|
$orderid = Db::name('pay_order')->insertGetId($data);
|
|
@@ -148,9 +149,12 @@ class Payios extends Api
|
|
|
|
|
|
|
|
|
$args = json_decode($order_info['args'],true);
|
|
|
+ $extend = [
|
|
|
+ 'cityname' => $args['cityname']
|
|
|
+ ];
|
|
|
|
|
|
if($order_info['table_name'] == 'jewel_recharge'){
|
|
|
- $result = model('Wallet')->lockChangeAccountRemain($order_info['user_id'],$args['jewel'],'+',0,'金币充值',33,'jewel');
|
|
|
+ $result = model('Wallet')->lockChangeAccountRemain($order_info['user_id'],$args['jewel'],'+',0,'金币充值',33,'jewel',$extend);
|
|
|
if($result['status']===false)
|
|
|
{
|
|
|
filePut($prefix.'逻辑添加金币失败');
|