this is a composer-extends for jd game(这是一个和京东游戏充值对接的模块)
you can use yii migration
yii migrate/up --migrationPath=@graychen/yii2/jd/deposit/migrations
Config Module in components part
'jd-deposit' => [
'class' => 'graychen\yii2\jd\deposit\Module',
]
Use Actions
class jdController extends Controller
{
public function actions()
{
return [
'create' => [
'class' => 'graychen\yii2\jd\deposit\createAction'
],
'status' => [
'class' => 'graychen\yii2\jd\deposit\statusAction'
]
];
}
}
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationPath' => [
'@graychen/yii2/jd/deposit/migrations'
],
],
],
'queue' => [
'class' => 'graychen\yii2\deposit\backend\Module',
]